<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml"
      xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>项目跟踪-新增/修改</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-store, must-revalidate">
    <meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">
    <meta http-equiv="expires" content="-1">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="/dist/img/icon.png" type="image/x-icon">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="/dist/plugins/bootstrap/css/bootstrap.min.css">
    <!--字体-->
    <link rel="stylesheet" href="/dist/css/font-awesome.min.css">
    <!--图标-->
    <link rel="stylesheet" href="/dist/css/ionicons.min.css">
    <!--插件样式-->
    <!--OA主样式-->
    <link rel="stylesheet" href="/dist/css/OA.min.css?t=86e2297f1">
    <link rel="stylesheet" href="/dist/css/skins/OA-skins.min.css?t=222aea35">

    <style type="text/css">
        .track-list{
            height: 320px;
            width: 860px;
            margin: 15px 15px 0;
            border: 1px solid #ddd;
            overflow-y: auto;
        }
        .track-list table{
            border: 0;
            width: 100%;
        }
        .row-title td{
            background-color: #ccc;
            height: 40px;
            padding-left: 10px;
        } 
        .row-title span{
            color: #999;
        }

        .row-title .span-right{
            margin-left: 15px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            width: 280px;
            display: inline-block;
            position: absolute;
        }
        .row-track span,.row-track p{
            float: left;
        }
        .row-track span{
            text-decoration-line: underline;
            color: #999;
        }
        .row-track div{
            margin: 5px 0 0 10px;
            display: inline-block;
        }
        .row-track p{
            width: 700px;
            margin: 0 0 0 10px;
        }
    </style>
</head>
<body>
<div class="layout" id="app">
    <div class="track-list">
        <table>
            <tr class="row-title">
                <td style="width:350px;font-weight: bold">{{proName}}</td>
                <td>
                    <div style="position: relative"><span>开始日期：{{planDate.sDate==""?"未填写":planDate.sDate}}</span> <span class="span-right">负责人：{{principalName}}</span></div>
                    <div style="position: relative"><span>结束日期：{{planDate.eDate==""?"未填写":planDate.eDate}}</span> <span  class="span-right">参与人：{{principalList.length==0?"未填写":""}}<template v-for="item,i in principalList">{{item.NAME}}{{i+1 == principalList.length?"":"、"}}</template></span></div>
                </td>
            </tr>
            <tr class="row-track">
                <td colspan="2" style="height:275px;vertical-align: top">
                    <div style="display: block;text-align: center;font-size: 30px;" v-if="trackList.length == 0">暂无数据</div>
                    <div v-for="item in trackList" v-if="trackList.length>0"><span>{{item.TRACK_DATE}}</span><p>{{item.TRACK_CONTENT}}</p></div>
                </td>
            </tr>
        </table>
    </div>
</div>
<script src="https://file.ggxqce.com/web/jquery-2.2.3.min.js"></script>
<!--插件JS-->
<script src="https://file.ggxqce.com/web/bootstrap.min.js"></script>
<!--框架已定义 JS-->
<script src="/dist/js/app_iframe.js?t=8e743a31"></script>
<!--oa自定义  JS-->
<script src="/dist/js/oa.js?t=54c6b89c"></script>
<script src="https://file.ggxqce.com/web/vue.min.js"></script>
<script type="text/javascript">
    var api = frameElement.api, W = api.opener;
    var app = new Vue({
        el: "#app",
        data: {
            currentUser: getCurrentUser(),
            projectId:"",
            trackList:[],
            principalList:[],
            planDate:{},
            principalName:"",
            proName:""
        },
        methods: {
            refresh:function(){
                var that = this;
                $.wyui.postMethod(urlConfig.pm.projectTrack.getProjectTrack, {
                    projectId:that.projectId
                }, function (data) {
                    that.trackList = data.trackList;
                    that.principalList = data.principalList;
                    that.planDate = data.planDate;
                    
                });
            },
            initTrackInfo: function () {
                var that = this;
                that.projectId = $.wyui.page.urlParams.projectId;
                that.principalName = $.wyui.page.urlParams.principalName;
                that.proName = $.wyui.page.urlParams.proName;
            }

        },
        mounted: function () {
            this.initTrackInfo();  
            this.refresh();         
        }
    });
</script>

</body>
</html>